home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / dalla rivista / news / fxpaint_demo / install < prev    next >
Text File  |  2000-02-05  |  5KB  |  141 lines

  1. ; Innovative fxPAINT Demo Installation utility
  2. ; (C) 1999-2000 by Felix Schwarz/Innovative
  3. ; $VER: 1.0
  4.  
  5. (if (= @language "deutsch")
  6.         (
  7.                 ; ----------------------------
  8.                 ; Let`s use German as language
  9.                 ; ----------------------------
  10.                 (set #welcome "\n\n\n\nfxPAINT 1.0 Demo\n©1998-2000 by Felix Schwarz\n\n\nWillkommen zur fxPAINT Demo Installation\nDieses Script wird die fxPAINT Demo auf Ihre HD installieren\n")
  11.                 (set #askinstall "Wohin soll fxPAINT Demo installiert werden. (Es wird ein Verzeichnis erstellt)")
  12.                 (set #cputxt "Welchen 68K-Prozessor haben Sie in Ihrem AMIGA ?")
  13.                 (set #cpuhelp "Wenn Sie sich unsicher sind, wählen Sie 68000. Diese Version arbeitet mit allen Systemen. Wenn Sie zwar einen 68030/040 oder 060 haben, aber über keine FPU verfügen, dann wählen Sie 68020 aus.")
  14.                 (set #copylibs "Überprüfe und kopiere benötigte Libraries..")
  15.                 (set #copyfxpaint "Kopiere fxPAINT-Dateien..")
  16.                 (set #copydocu "Kopiere fxPAINT-Dokumentation..")
  17.                 (set #copydocufile "Docu/German")
  18.                 (set #useradd "Folgende Zeilen werden zur User-Startup hinzugefügt:\n\n")
  19.                 (set #byebye "\n\n\n\n\n\n\nfxPAINT Demo ist nun auf Ihrer Festplatte installiert.")
  20.         )
  21.         (
  22.                 ; -----------------------------
  23.                 ; Let`s use English as language
  24.                 ; -----------------------------
  25.                 (set #welcome "\n\n\n\nfxPAINT 1.0 Demo \n©1998-2000 by Felix Schwarz\n\n\nWelcome to the fxPAINT Demo installation\nThis script will install fxPAINT Demo on your HD\n")
  26.                 (set #askinstall "Where shall fxPAINT Demo be installed. (A directory will be created)")
  27.                 (set #cputxt "Which 68K-CPU do you have installed in your AMIGA ?")
  28.                 (set #cpuhelp "If you`re not sure, which CPU is installed in your AMIGA, choose the 68000. This version works on all systems. If you have a 68030/040 or 060 installed in your AMIGA, but no FPU, choose 68020.")
  29.                 (set #copylibs "Checking and installing required libraries..")
  30.                 (set #copyfxpaint "Copying fxPAINT-files..")
  31.                 (set #copydocu "Copying fxPAINT-documentation..")
  32.                 (set #copydocufile "Docu/English")
  33.                 (set #useradd "The following lines will be added to your user-startup:\n\n")
  34.                 (set #byebye "\n\n\n\n\n\n\nfxPAINT is now installed on your HD.")
  35.         )
  36. )
  37.  
  38. ; --------------------------------------
  39. ; Ok, let`s begin with a small greeting!
  40. ; --------------------------------------
  41.  
  42. (message #welcome)
  43.  
  44. (welcome)
  45.  
  46. ; -------------------------------------
  47. ; Set destination-directory for fxPAINT
  48. ; -------------------------------------
  49. (set #installdir
  50.         (askdir
  51.                 (prompt #askinstall)
  52.                 (help @askdir-help)
  53.                 (default @default-dest)
  54.         )
  55. )
  56.  
  57. ; ------------------------------
  58. ; Set CPU installed in the AMIGA
  59. ; ------------------------------
  60. (set #cpu 1)
  61. (set #cpu2 (database "fpu"))
  62. (if (= #cpu2 "NOFPU") (set #cpu 0))
  63.  
  64. (set #cpuvers (askchoice (choices "68000/68010" "68020/030/040/060 + FPU")
  65.                 (prompt #cputxt)
  66.                 (help   #cpuhelp)
  67.                 (default #cpu)
  68.         )
  69. )
  70.  
  71. ; ----------------
  72. ; Copy basic files
  73. ; ----------------
  74. (copyfiles
  75.     (source "InstallData")
  76.     (dest #installdir)
  77.     (pattern "#?")
  78. )
  79.  
  80. ; ----------------
  81. ; Copy CPU version
  82. ; ----------------
  83. (if (= #cpuvers 1)
  84.  (
  85.         (set #cpudestination
  86.                 (tackon #installdir "fxPAINT")
  87.         )
  88.  
  89.         (copyfiles
  90.                 (source "FPUBin")
  91.                 (dest #cpudestination)
  92.                 (pattern "#?")
  93.         )
  94.  )
  95. )
  96.  
  97. ; --------------
  98. ; Copy libraries
  99. ; --------------
  100. (working #copylibs)
  101. (run "copylib InstallData/fxPAINT/Libs/fxWARP.library LIBS:fxWARP.library")
  102.  
  103. ; ------------------
  104. ; Copy documentation
  105. ; ------------------
  106. (working #copydocu)
  107.  
  108. (set #docufile
  109.         (tackon #installdir "fxPAINT/Doc/")
  110. )
  111.  
  112. (copyfiles
  113.     (source #copydocufile)
  114.     (dest #docufile)
  115.     (pattern "#?")
  116. )
  117.  
  118. ; ------------------------------
  119. ; Add some lines to user-startup
  120. ; ------------------------------
  121. (set #thewholepath
  122.         (tackon #installdir "fxPAINT/")
  123. )
  124.  
  125. (set #startupadditions
  126.         ("Assign fxPAINT: \"%s\"" #thewholepath)
  127. )
  128.  
  129. (startup "Innovative fxPAINT"
  130.         (prompt #useradd
  131.                 #startupadditions)
  132.         (help "")
  133.         (command #startupadditions)
  134. )
  135.  
  136. ; -------------------------
  137. ; Say Bye-Bye and Thank-You
  138. ; -------------------------
  139.  
  140. (message #byebye)
  141.